Beispiel #1
0
        public static void Postfix(IEnumerator <bool> __instance, ref bool __state, ushort ___segmentID, string ___name)
        {
            if (!NameHandler.CanRun(__instance, __state))
            {
                return;
            }

            Command.SendToAll(new ChangeNameCommand
            {
                Type = InstanceType.NetSegment,
                Id   = ___segmentID,
                Name = ___name
            });
        }
Beispiel #2
0
        public static void Postfix(ushort ___building, string ___name, ref bool __state, object __instance)
        {
            if (!NameHandler.CanRun(__instance, __state))
            {
                return;
            }

            Command.SendToAll(new ChangeNameCommand
            {
                Type = InstanceType.Building,
                Id   = ___building,
                Name = ___name
            });
        }
Beispiel #3
0
        public static void Postfix(uint ___citizenID, string ___name, ref bool __state, object __instance)
        {
            if (!NameHandler.CanRun(__instance, __state))
            {
                return;
            }

            Command.SendToAll(new ChangeNameCommand
            {
                Type = InstanceType.Citizen,
                Id   = (int)___citizenID,
                Name = ___name
            });
        }