示例#1
0
        public ObjectSeed AddChild(string name, float layer, Point position, string sprite = null, string animation = null, bool isSpriteLooped = false)
        {
            var objectSeed = new ObjectSeed {
                Name = name, Layer = layer, Position = position, Sprite = sprite, Animation = animation, IsSpriteLooped = isSpriteLooped
            };

            return(AddChild(objectSeed));
        }
示例#2
0
 public ObjectSeed AddChild(ObjectSeed child)
 {
     (Children ?? (Children = new List <ObjectSeed>())).Add(child);
     return(this);
 }