GetChangeMapInformation() public method

public GetChangeMapInformation ( MapChangeRegion region ) : ChangeMapInformation
region MapChangeRegion
return ChangeMapInformation
コード例 #1
0
        void MapChangeRegion_ObjectIn(Entity entity, MapObject obj)
        {
            if (PlayerIntellect.Instance != null && PlayerIntellect.Instance.ControlledObject == obj)
            {
                if (EntitySystemWorld.Instance.IsServer())
                {
                    Log.Warning("MapChangeRegion: Networking mode is not supported.");
                    return;
                }

                PlayerCharacter character = (PlayerCharacter)PlayerIntellect.Instance.ControlledObject;
                PlayerCharacter.ChangeMapInformation playerCharacterInformation =
                    character.GetChangeMapInformation(this);
                GameWorld.Instance.SetShouldChangeMap(mapName, spawnPointName,
                                                      playerCharacterInformation);
            }
        }