コード例 #1
0
ファイル: Wall.cs プロジェクト: nedearb/VikingGame
 public Wall(byte index, WallFlag flags, Vector2[] sides, Vector2[] top, Vector2[] flat)
 {
     walls[index] = this;
     this.index = index;
     this.flags = flags;
     halfSize = new Vector3(.5f, .5f, .5f);
     texCoordsSides = sides;
     texCoordsTop = top;
     texCoordsFlat = flat;
 }
コード例 #2
0
ファイル: Wall.cs プロジェクト: nedearb/VikingGame
 internal bool hasFlag(WallFlag find)
 {
     return flags.HasFlag(find);
 }
コード例 #3
0
ファイル: Wall.cs プロジェクト: nedearb/VikingGame
 public Wall(byte index, WallFlag flags)
     : this(index, flags, MathCustom.toArray(Vector2.Zero), MathCustom.toArray(Vector2.Zero), MathCustom.toArray(Vector2.Zero))
 {
 }
コード例 #4
0
ファイル: Wall.cs プロジェクト: nedearb/VikingGame
 public Wall(byte index, WallFlag flags, int sidesX, int sidesY, int topX, int topY, int flatX, int flatY)
     : this(index, flags, RenderGroup.makeTextureCoords(sidesX, sidesY), RenderGroup.makeTextureCoords(topX, topY), RenderGroup.makeTextureCoords(flatX, flatY))
 {
 }