Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
        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;
        }
Exemplo n.º 3
0
 public SpriteDef(string defName, AtlasDef atlas, Vec2I origin, Vec2I size, Vec2I anchor)
     : this(defName, atlas, new Atlas.Rect(origin, size, anchor))
 {
 }
Exemplo n.º 4
0
 public SpriteDef(string defName, AtlasDef atlas, Atlas.Rect rect)
     : base("BB:Sprite", defName)
 {
     this.atlas = atlas;
     this.rect  = rect;
 }
Exemplo n.º 5
0
 public TerrainDef(string defName, string name,
                   AtlasDef atlas, Vec2I spriteOrigin)
     : this(defName, name, atlas, new Vec2I[] { spriteOrigin })
 {
 }