예제 #1
0
        public static void SetFlag(Player player, PlayerFlag flag, bool toggle)
        {
            BitSet flags = GetFlags(player);

            if (toggle)
            {
                flags.Set((int)flag);
            }
            else
            {
                flags.Unset((int)flag);
            }

            EntityDecoration.Set(player.Character, PlayerProperties.Flags, flags);
        }
예제 #2
0
 public static void SetInterOwnerToMyself(Player player)
 {
     EntityDecoration.Set(player.Character, PlayerProperties.InteriorOwner, -1);
 }
예제 #3
0
 public static void SetInteriorOwner(Player player, Player owner)
 {
     EntityDecoration.Set(player.Character, PlayerProperties.InteriorOwner, owner.Handle);
 }
예제 #4
0
 public static void SetInteriorId(Player player, int interiorId)
 {
     EntityDecoration.Set(player.Character, PlayerProperties.InteriorId, interiorId);
 }