public BldgWallDef( string defName, string name, ItemInfo[] materials, AtlasDef atlas, Vec2I spriteOrigin) : base("BB:Wall", defName, name) { this.materials = materials; this.atlas = atlas; this.spriteOrigin = spriteOrigin; }
public TerrainDef(string defName, string name, AtlasDef atlas, Vec2I[] spriteFrames, bool passable = true) : base("BB:Terrain", defName, name) { BB.Assert(spriteFrames != null); BB.Assert(spriteFrames.Length > 0); this.atlas = atlas; this.spriteFrames = spriteFrames; this.passable = passable; }
public SpriteDef(string defName, AtlasDef atlas, Vec2I origin, Vec2I size, Vec2I anchor) : this(defName, atlas, new Atlas.Rect(origin, size, anchor)) { }
public SpriteDef(string defName, AtlasDef atlas, Atlas.Rect rect) : base("BB:Sprite", defName) { this.atlas = atlas; this.rect = rect; }
public TerrainDef(string defName, string name, AtlasDef atlas, Vec2I spriteOrigin) : this(defName, name, atlas, new Vec2I[] { spriteOrigin }) { }