Beispiel #1
0
    public LinkedListNode <Map> AddMap(Map.Record kMapRecord)
    {
        if (this.FindMap(kMapRecord.m_iUnique) != null)
        {
            return(null);
        }
        Map map = new Map();

        map.SetRecord(kMapRecord);
        this.m_kMapList.AddLast(map);
        return(this.m_kMapList.Last);
    }
Beispiel #2
0
    public void MakeMapLink()
    {
        ICollection mapInfo_Col = NrTSingleton <NrBaseTableManager> .Instance.GetMapInfo_Col();

        foreach (MAP_INFO mAP_INFO in mapInfo_Col)
        {
            Map        map    = new Map();
            Map.Record record = new Map.Record(mAP_INFO.MAP_INDEX);
            map.SetRecord(record);
            GATE_INFO[] gateInfo = mAP_INFO.GetGateInfo();
            GATE_INFO[] array    = gateInfo;
            for (int i = 0; i < array.Length; i++)
            {
                GATE_INFO gATE_INFO = array[i];
                map.InsertLinkMapUnique(gATE_INFO.DST_MAP_IDX);
                GateData gate = new GateData(gATE_INFO.DST_MAP_IDX, new Vector2(gATE_INFO.SRC_POSX, gATE_INFO.SRC_POSZ));
                this.m_kGateMgr.Add(mAP_INFO.MAP_INDEX, gate);
            }
            this.AddMap(map);
        }
    }
Beispiel #3
0
 public void SetRecord(Map.Record kRecord)
 {
     this.m_kRecord = kRecord;
 }