public IArea ToItem(AGSSerializationContext context) { AGSArea area = new AGSArea(ID, context.Resolver); area.Mask = Mask.ToItem(context); area.Enabled = Enabled; return(area); }
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; }
public static IArea Create(string id, IMask mask) { var area = new AGSArea(id, AGSGame.Resolver) { Mask = mask }; area.AddComponent <IWalkableArea>(); return(area); }
public static IArea Create(string id, IMask mask) { var area = new AGSArea(id, AGSGame.Resolver) { Mask = mask }; area.AddComponent<IWalkBehindArea>(); return area; }