public PlacedMapEntity Generate(MapEntityType type, Vector3 position, int LODScale) { switch (type) { case MapEntityType.ground: return(new PMEGround(position, LODScale)); } return(null); }
public MapEntity(ObjectContainer map, object msbo, MapEntityType type) { Container = map; WrappedObject = msbo; Type = type; if (!(msbo is PARAM.Row) && !(msbo is MergedParamRow)) { CurrentModel = GetPropertyValue <string>("ModelName"); } }
public PlacedMapEntity(MapEntityType type, Vector3 position, float LODScale) { this.position = position; this.type = type; this.LODScale = LODScale; }