示例#1
0
        public static void RemoveWarn(this CustomData customData, int warnId)
        {
            var warns = customData.GetWarns();

            warns.Remove(warns[warnId]);
            customData.AddOrUpdate(CustomDataKey, warns);
        }
示例#2
0
        public static void AddWarn(this CustomData customData, ShPlayer issuer, string reason)
        {
            var warns = customData.GetWarns();

            warns.Add(new SerializableWarn(issuer.username, reason, DateTimeOffset.Now));
            customData.AddOrUpdate(CustomDataKey, warns);
        }
示例#3
0
 private void SetCutsomData()
 {
     CustomData.AddOrUpdate("version", Version);
 }
示例#4
0
 private void SetCustomData()
 {
     CustomData.AddOrUpdate("version", Version);
     CustomData.AddOrUpdate("devbuild", IsDevelopmentBuild());
 }