mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-06 01:00:16 +00:00
change "enterheadzone" to "enternonnomaiheadzone"
This commit is contained in:
parent
05c018bbac
commit
9ad260c081
@ -101,7 +101,7 @@ namespace QSB.Animation.NPC.Patches
|
||||
public static bool HeadZoneExit(CharacterAnimController __instance)
|
||||
{
|
||||
var qsbObj = QSBWorldSync.GetWorldFromUnity<QSBCharacterAnimController, CharacterAnimController>(__instance);
|
||||
QSBEventManager.FireEvent(EventNames.QSBExitHeadZone, qsbObj.ObjectId);
|
||||
QSBEventManager.FireEvent(EventNames.QSBExitNonNomaiHeadZone, qsbObj.ObjectId);
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -110,7 +110,7 @@ namespace QSB.Animation.NPC.Patches
|
||||
public static bool HeadZoneEntry(CharacterAnimController __instance)
|
||||
{
|
||||
var qsbObj = QSBWorldSync.GetWorldFromUnity<QSBCharacterAnimController, CharacterAnimController>(__instance);
|
||||
QSBEventManager.FireEvent(EventNames.QSBEnterHeadZone, qsbObj.ObjectId);
|
||||
QSBEventManager.FireEvent(EventNames.QSBEnterNonNomaiHeadZone, qsbObj.ObjectId);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -62,8 +62,8 @@
|
||||
public static string QSBCampfireState = "QSBCampfireState";
|
||||
public static string QSBMarshmallowEvent = "QSBMarshmallowEvent";
|
||||
public static string QSBAnimTrigger = "QSBAnimTrigger";
|
||||
public static string QSBEnterHeadZone = "QSBEnterHeadZone";
|
||||
public static string QSBExitHeadZone = "QSBExitHeadZone";
|
||||
public static string QSBEnterNonNomaiHeadZone = "QSBEnterHeadZone";
|
||||
public static string QSBExitNonNomaiHeadZone = "QSBExitHeadZone";
|
||||
public static string QSBNpcAnimEvent = "QSBNpcAnimEvent";
|
||||
public static string QSBHatchState = "QSBHatchState";
|
||||
public static string QSBEnableFunnel = "QSBEnableFunnel";
|
||||
|
@ -8,9 +8,11 @@
|
||||
ExitShrine = 3,
|
||||
EnterPlatform = 4,
|
||||
ExitPlatform = 5,
|
||||
EnterHeadZone = 6,
|
||||
ExitHeadZone = 7,
|
||||
EnterNonNomaiHeadZone = 6,
|
||||
ExitNonNomaiHeadZone = 7,
|
||||
EnterShip = 8,
|
||||
ExitShip = 9
|
||||
ExitShip = 9,
|
||||
EnterNomaiHeadZone = 10,
|
||||
ExitNomaiHeadZone = 11
|
||||
}
|
||||
}
|
||||
|
@ -20,8 +20,8 @@ namespace QSB.Player.Events
|
||||
GlobalMessenger.AddListener(EventNames.QSBExitShrine, () => Handler(EnterLeaveType.ExitShrine));
|
||||
GlobalMessenger<int>.AddListener(EventNames.QSBEnterPlatform, (int id) => Handler(EnterLeaveType.EnterPlatform, id));
|
||||
GlobalMessenger<int>.AddListener(EventNames.QSBExitPlatform, (int id) => Handler(EnterLeaveType.ExitPlatform, id));
|
||||
GlobalMessenger<int>.AddListener(EventNames.QSBEnterHeadZone, (int id) => Handler(EnterLeaveType.EnterHeadZone, id));
|
||||
GlobalMessenger<int>.AddListener(EventNames.QSBExitHeadZone, (int id) => Handler(EnterLeaveType.ExitHeadZone, id));
|
||||
GlobalMessenger<int>.AddListener(EventNames.QSBEnterNonNomaiHeadZone, (int id) => Handler(EnterLeaveType.EnterNonNomaiHeadZone, id));
|
||||
GlobalMessenger<int>.AddListener(EventNames.QSBExitNonNomaiHeadZone, (int id) => Handler(EnterLeaveType.ExitNonNomaiHeadZone, id));
|
||||
GlobalMessenger.AddListener(EventNames.EnterShip, () => Handler(EnterLeaveType.EnterShip));
|
||||
GlobalMessenger.AddListener(EventNames.ExitShip, () => Handler(EnterLeaveType.ExitShip));
|
||||
}
|
||||
@ -32,6 +32,12 @@ namespace QSB.Player.Events
|
||||
GlobalMessenger.RemoveListener(EventNames.ExitQuantumMoon, () => Handler(EnterLeaveType.ExitMoon));
|
||||
GlobalMessenger.RemoveListener(EventNames.QSBEnterShrine, () => Handler(EnterLeaveType.EnterShrine));
|
||||
GlobalMessenger.RemoveListener(EventNames.QSBExitShrine, () => Handler(EnterLeaveType.ExitShrine));
|
||||
GlobalMessenger<int>.RemoveListener(EventNames.QSBEnterPlatform, (int id) => Handler(EnterLeaveType.EnterPlatform, id));
|
||||
GlobalMessenger<int>.RemoveListener(EventNames.QSBExitPlatform, (int id) => Handler(EnterLeaveType.ExitPlatform, id));
|
||||
GlobalMessenger<int>.RemoveListener(EventNames.QSBEnterNonNomaiHeadZone, (int id) => Handler(EnterLeaveType.EnterNonNomaiHeadZone, id));
|
||||
GlobalMessenger<int>.RemoveListener(EventNames.QSBExitNonNomaiHeadZone, (int id) => Handler(EnterLeaveType.ExitNonNomaiHeadZone, id));
|
||||
GlobalMessenger.RemoveListener(EventNames.EnterShip, () => Handler(EnterLeaveType.EnterShip));
|
||||
GlobalMessenger.RemoveListener(EventNames.ExitShip, () => Handler(EnterLeaveType.ExitShip));
|
||||
}
|
||||
|
||||
private void Handler(EnterLeaveType type, int objectId = -1) => SendEvent(CreateMessage(type, objectId));
|
||||
@ -71,10 +77,10 @@ namespace QSB.Player.Events
|
||||
CustomNomaiRemoteCameraPlatform.CustomPlatformList[message.ObjectId]
|
||||
.OnRemotePlayerExit(message.AboutId);
|
||||
break;
|
||||
case EnterLeaveType.EnterHeadZone:
|
||||
case EnterLeaveType.EnterNonNomaiHeadZone:
|
||||
QSBWorldSync.GetWorldFromId<QSBCharacterAnimController>(message.ObjectId).AddPlayerToHeadZone(player);
|
||||
break;
|
||||
case EnterLeaveType.ExitHeadZone:
|
||||
case EnterLeaveType.ExitNonNomaiHeadZone:
|
||||
QSBWorldSync.GetWorldFromId<QSBCharacterAnimController>(message.ObjectId).RemovePlayerFromHeadZone(player);
|
||||
break;
|
||||
case EnterLeaveType.EnterShip:
|
||||
|
Loading…
Reference in New Issue
Block a user