Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
        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;
        }
Ejemplo n.º 3
0
        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;
        }
Ejemplo n.º 4
0
        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;
        }
Ejemplo n.º 5
0
        // 添加道具列表
        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;
            }
        }
Ejemplo n.º 6
0
        // 添加道具列表
        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;
            }
        }