コード例 #1
0
        private PointInfo(IntPtr instance)
        {
            NativePointInfo nativeInstance = new NativePointInfo(instance);

            X = nativeInstance.X;
            Y = nativeInstance.Y;
        }
コード例 #2
0
    public void RenderNative(IntVector2 nativeXZ)
    {
        //if (!npcInfoMap.ContainsKey(posXZ))
        //{
        //    return;
        //}
        //if(createdPosList.ContainsKey(nativeXZ)){
        //    return;
        //}
        NativePointInfo nativePointInfo = nativePointInfoMap[nativeXZ];

        if (nativePointInfo.PosY == -1)
        {
            return;
        }

        RenderNative(nativePointInfo);
    }
コード例 #3
0
    public void RenderNative(NativePointInfo nativePointInfo)
    {
        int     id  = nativePointInfo.ID;
        Vector3 pos = nativePointInfo.position;
//        int townId = nativePointInfo.townId;
        //if (Pathea.PeGameMgr.IsSingleAdventure)
        //{
        //    Debug.Log("SPPoint.InstantiateSPPoint<SPPoint>: " + pos);
        //    SPPoint point = SPPoint.InstantiateSPPoint<SPPoint>(pos,
        //                                                        Quaternion.identity,
        //                                                        IntVector4.Zero,
        //                                                        SPTerrainEvent.instance.transform,
        //                                                        0,
        //                                                        id,
        //                                                        true,
        //                                                        true,
        //                                                        false,
        //                                                        false);

        //    SPTerrainEvent.instance.RegisterSPPoint(point, true);
        //}
        //else if (GameConfig.IsMultiMode)
        //{
        //    SPTerrainEvent.instance.CreateMultiNativeStatic(pos, id, townId);
        //}

//		if(Pathea.PeGameMgr.IsSingleAdventure)
//		{
        int allyId                = VArtifactTownManager.Instance.GetTownByID(nativePointInfo.townId).AllyId;
        int playerId              = VATownGenerator.Instance.GetPlayerId(allyId);
        int allyColor             = VATownGenerator.Instance.GetAllyColor(allyId);
        SceneEntityPosAgent agent = MonsterEntityCreator.CreateAdAgent(pos, id, allyColor, playerId);

        SceneMan.AddSceneObj(agent);
        VArtifactTownManager.Instance.AddMonsterPointAgent(nativePointInfo.townId, agent);
//		}
    }
コード例 #4
0
 internal void AddNative(NativePointInfo nativePointInfo)
 {
     nativePointInfoMap[nativePointInfo.index] = nativePointInfo;
 }
コード例 #5
0
ファイル: PointInfo.cs プロジェクト: dlemstra/Magick.NET
 private PointInfo(IntPtr instance)
 {
   NativePointInfo nativeInstance = new NativePointInfo(instance);
   X = nativeInstance.X;
   Y = nativeInstance.Y;
 }