예제 #1
0
        public IArea ToItem(AGSSerializationContext context)
        {
            AGSArea area = new AGSArea(ID, context.Resolver);

            area.Mask    = Mask.ToItem(context);
            area.Enabled = Enabled;

            return(area);
        }
예제 #2
0
 private IArea getArea()
 {
     var resolver = ObjectTests.GetResolver();
     resolver.Build();
     var area = new AGSArea("Area", resolver) { Mask = new AGSMask(new bool[][] { }, null) };
     AGSScalingArea.Create(area, 1f, 1f);
     area.AddComponent<IWalkBehindArea>();
     return area;
 }
예제 #3
0
        public static IArea Create(string id, IMask mask)
        {
            var area = new AGSArea(id, AGSGame.Resolver)
            {
                Mask = mask
            };

            area.AddComponent <IWalkableArea>();
            return(area);
        }
예제 #4
0
 public static IArea Create(string id, IMask mask)
 {
     var area = new AGSArea(id, AGSGame.Resolver) { Mask = mask };
     area.AddComponent<IWalkBehindArea>();
     return area;
 }