From 966039fbb279111c4e084814010dd88893c973ca Mon Sep 17 00:00:00 2001 From: Wafa Sadri Date: Thu, 10 Apr 2014 12:13:43 +0200 Subject: [PATCH] ProcessPlayer() geschrieben --- src/Parser.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/Parser.cs b/src/Parser.cs index 1574b13..ff96710 100644 --- a/src/Parser.cs +++ b/src/Parser.cs @@ -206,9 +206,18 @@ namespace WorldOfPeacecraft } - private void ProcessPlayer (Block block) + private void ProcessPlayer (Block playerBlock) { + int points = playerBlock.GetIntValue ("points"); + int id = playerBlock.GetIntValue ("id"); + bool busy = playerBlock.GetBoolValue ("busy"); + string desc = playerBlock.GetStringValue ("desc"); + int x = playerBlock.GetIntValue ("x"); + int y = playerBlock.GetIntValue ("y"); + //Player p = new Player(points, id, busy, desc, x, y,); } + //"points:",INT, "id:",INT,"type:Player","busy:"BOOLEAN,"desc:"STRING,"x:",INT,"y:",INT, + private void ProcessYourid (Block block) {