public static teMapPlaceableData GetPlaceableData(STUMapHeader map, Enums.teMAP_PLACEABLE_TYPE modelGroup) { using (Stream stream = OpenFile(map.GetChunkKey(modelGroup))) { if (stream == null) { return(null); } return(new teMapPlaceableData(stream, modelGroup)); } }
public static teMapPlaceableData GetPlaceableData(STUMapHeader map, Enums.teMAP_PLACEABLE_TYPE modelGroup) { return(GetPlaceableData(map, (byte)modelGroup)); }
public static ulong GetChunkKey(this STUMapHeader w, Enums.teMAP_PLACEABLE_TYPE type) { return((GetChunkRoot(w) & ~0xFFFF00000000ul) | ((ulong)type << 32)); }