private static void ShowBiology(this EntityComponent entityComponent, Type logicType, string entityGroup, EntityData data) { if (data == null) { Log.Warning("Data is invalid."); return; } IDataTable <DRMonster> dtEntity = GameEntry.DataTable.GetDataTable <DRMonster>(); DRMonster drEntity = dtEntity.GetDataRow(data.Id); if (drEntity == null) { Log.Warning("Can not load entity id '{0}' from data table.", data.TypeId.ToString()); return; } entityComponent.ShowEntity(data.Id, logicType, AssetUtility.GetBiology("MonstorPrefab"), entityGroup, data); }