public void psstAddMobileObjectPropertyUserCmd(t_Object_mobile obj) { DataItemObjectBase item = new DataItemObjectBase(); item.m_srvItemObject = obj; item.m_tableItemObject = Ctx.m_instance.m_tableSys.getItem(TableID.TABLE_OBJECT, item.m_srvItemObject.dwObjectID) as TableItemBase; m_objList.Add(item); m_id2ObjDic[item.m_srvItemObject.dwThisID] = item; }
public void addObjectByTableID(uint tableid) { DataItemObjectBase item = new DataItemObjectBase(); m_objList.Add(item); m_id2ObjDic[tableid] = item; item.m_tableItemObject = Ctx.m_instance.m_tableSys.getItem(TableID.TABLE_OBJECT, tableid) as TableItemBase; }
// 添加道具列表 public void psstAddMobileObjectListPropertyUserCmd(List<stObjectOperator> list) { clearPack(); t_Object_mobile obj; foreach (stObjectOperator opt in list) { obj = opt.mobject; DataItemObjectBase item = new DataItemObjectBase(); item.m_srvItemObject = obj; item.m_tableItemObject = Ctx.m_instance.m_tableSys.getItem(TableID.TABLE_OBJECT, item.m_srvItemObject.dwObjectID) as TableItemBase; m_objList.Add(item); m_id2ObjDic[item.m_srvItemObject.dwThisID] = item; } }
// 添加道具列表 public void psstAddMobileObjectListPropertyUserCmd(List <stObjectOperator> list) { clearPack(); t_Object_mobile obj; foreach (stObjectOperator opt in list) { obj = opt.mobject; DataItemObjectBase item = new DataItemObjectBase(); item.m_srvItemObject = obj; item.m_tableItemObject = Ctx.m_instance.m_tableSys.getItem(TableID.TABLE_OBJECT, item.m_srvItemObject.dwObjectID) as TableItemBase; m_objList.Add(item); m_id2ObjDic[item.m_srvItemObject.dwThisID] = item; } }