示例#1
0
        public void SerializationMapTest( )
        {
            Map map = new Map("Test.xml");

            Game.Current.GameRule = GameRule.GenerateEmpty( );
            Game.Current.Map      = map;
            Console.WriteLine(map.ToXElement( ));
        }
示例#2
0
        public void AccessExpressionTest( )
        {
            GameRule emptyRule = GameRule.GenerateEmpty( );

            Game.PeapareNew( );
            Game.Current.GameRule = emptyRule;
            EmptyBlock block = new EmptyBlock(new MapPosition(1, 1));
            GameValue  c     = block.Flammability;
        }
示例#3
0
        public void GenerateEmptyTest( )
        {
            GameRule emptyRule = GameRule.GenerateEmpty( );

            Console.WriteLine(emptyRule.ToXElement( ));
        }