コード例 #1
0
    public virtual void FromBZWObject(BZFlag.Map.Elements.World world)
    {
        Name          = world.Name;
        Size          = world.Size;
        FlagHeight    = world.FlagHeight;
        NoWalls       = world.NoWalls;
        FreeCTFSpawns = world.FreeCTFSpawns;

        Attributes = world.Attributes;
    }
コード例 #2
0
    public override BZFlag.Map.Elements.BasicObject ToBZWObject()
    {
        var world = new BZFlag.Map.Elements.World();

        world.Name          = Name;
        world.Size          = Size;
        world.NoWalls       = NoWalls;
        world.FreeCTFSpawns = FreeCTFSpawns;
        world.Attributes    = Attributes;

        return(world);
    }