Пример #1
0
 public BaseWorldTile()
 {
     shadowReceiverMode = ShadowReceiverMode.Exact;
     interactionType    = BackingBox.IType.Static;
     topFaceTiles       = DataStructureHelper.CreateFilledArray(w * d, WorldTileFace.Empty);
     frontFaceTiles     = DataStructureHelper.CreateFilledArray(w * d, WorldTileFace.Empty);
     PostSerialize();
 }
Пример #2
0
 public BaseWorldTile(string TextureKey, int X, int Y, int Z, int W, int H, int D, int SourceTileWidth, int SourceTileHeight, int SourceTileDepth, BackingBox.IType InteractionType = BackingBox.IType.Static, WorldTileFace[] TopFaceTiles = null, WorldTileFace[] FrontFaceTiles = null)
 {
     textureKey         = TextureKey;
     x                  = X;
     y                  = Y;
     z                  = Z;
     w                  = W;
     h                  = H;
     d                  = D;
     sourceTileWidth    = SourceTileWidth;
     sourceTileHeight   = SourceTileHeight;
     sourceTileDepth    = SourceTileDepth;
     shadowReceiverMode = ShadowReceiverMode.Exact;
     interactionType    = InteractionType;
     topFaceTiles       = TopFaceTiles ?? DataStructureHelper.CreateFilledArray(w * d, WorldTileFace.Empty);
     frontFaceTiles     = FrontFaceTiles ?? DataStructureHelper.CreateFilledArray(w * d, WorldTileFace.Empty);
     PostSerialize();
 }