示例#1
0
 public EntityIdPresenceFieldList(FieldKeyHelper.Program Program, FieldKeyHelper.OriginatingClass OriginatingClass, uint FieldNumber, uint Index)
 {
     _fieldNumber      = FieldNumber;
     _index            = Index;
     _program          = Program;
     _originatingClass = OriginatingClass;
 }
示例#2
0
 /// <summary>
 /// C-tor Index is not needed as in enums the index is set to 4 it seems
 /// </summary>
 /// <param name="program"></param>
 /// <param name="originatingClass"></param>
 /// <param name="fieldNumber"></param>
 /// <param name="index"></param>
 public EntityIdPresenceFieldList(FieldKeyHelper.Program program, FieldKeyHelper.OriginatingClass originatingClass, uint fieldNumber)
 {
     FieldNumber = fieldNumber;
     //Index = ?????; //for enums this is a kind of id, maybe presence service id for this enum
     Program          = program;
     OriginatingClass = originatingClass;
 }
示例#3
0
 public PresenceField(FieldKeyHelper.Program program, FieldKeyHelper.OriginatingClass originatingClass, uint fieldNumber, uint index, T defaultValue)
 {
     Value            = defaultValue;
     FieldNumber      = fieldNumber;
     Index            = index;
     Program          = program;
     OriginatingClass = originatingClass;
 }
示例#4
0
        /// <summary>
        /// PresenceServiceSpecific: Removes all fields for a specific class
        /// See GameAccount Set Toon for an example
        /// </summary>
        /// <param name="originatingClass"></param>
        public void RemovePresenceFieldsForSpecificClass(FieldKeyHelper.OriginatingClass originatingClass)
        {
            List <PresenceFieldBase> fieldsToRemove = new List <PresenceFieldBase>();

            foreach (var field in presenceFieldList)
            {
                if (field.OriginatingClass == originatingClass)
                {
                    fieldsToRemove.Add(field);
                }
            }
            foreach (var field in fieldsToRemove)
            {
                presenceFieldList.Remove(field);
            }
        }
示例#5
0
 public UintPresenceField(FieldKeyHelper.Program Program, FieldKeyHelper.OriginatingClass OriginatingClass, uint FieldNumber, uint Index, ulong defaultValue = default(ulong))
     : base(Program, OriginatingClass, FieldNumber, Index, defaultValue)
 {
 }
示例#6
0
 public BoolPresenceField(FieldKeyHelper.Program Program, FieldKeyHelper.OriginatingClass OriginatingClass, uint FieldNumber, uint Index, bool defaultValue = default(bool))
     : base(Program, OriginatingClass, FieldNumber, Index, defaultValue)
 {
 }
示例#7
0
 public ByteStringPresenceField(FieldKeyHelper.Program Program, FieldKeyHelper.OriginatingClass OriginatingClass, uint FieldNumber, uint Index, T defaultValue = default(T))
     : base(Program, OriginatingClass, FieldNumber, Index, defaultValue)
 {
 }