add data type to get_data_ptr
This commit is contained in:
@@ -777,7 +777,7 @@ namespace ModelRenderer.Scripts.GameData
|
||||
return DATA_TYPE.DT_INVALID;
|
||||
}
|
||||
|
||||
public object get_data_ptr(uint id, ID_SPACE idspace)
|
||||
public object get_data_ptr(uint id, ID_SPACE idspace, ref DATA_TYPE dataType)
|
||||
{
|
||||
object data = null;
|
||||
switch (idspace)
|
||||
@@ -785,6 +785,7 @@ namespace ModelRenderer.Scripts.GameData
|
||||
case ID_SPACE.ID_SPACE_ESSENCE:
|
||||
if (essence_id_data_map.TryGetValue(id, out data))
|
||||
{
|
||||
dataType = essence_id_data_type_map[id];
|
||||
return data;
|
||||
}
|
||||
break;
|
||||
@@ -793,6 +794,7 @@ namespace ModelRenderer.Scripts.GameData
|
||||
case ID_SPACE.ID_SPACE_CONFIG:
|
||||
if (config_id_data_map.TryGetValue(id, out data))
|
||||
{
|
||||
dataType = config_id_data_type_map[id];
|
||||
return data;
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user