Example #1
0
File: Tile.cs Project: zril/Coma
        public void FromMessage(String message)
        {
            string[] splitargs = message.Split(';');

            Type         = (TileType)int.Parse(splitargs[0]);
            Influence    = int.Parse(splitargs[1]);
            Contructable = Utils.StringToBool(splitargs[2]);
            Radiance     = Utils.StringToBool(splitargs[3]);

            string[]     itemargs = splitargs[4].Split(',');
            TileItemType itemtype = (TileItemType)(int.Parse(itemargs[0]));

            Item = TileItemInfo.GetClone(itemtype);
            Item.FromMessage(splitargs[4]);
        }