public EntityIdPresenceFieldList(FieldKeyHelper.Program Program, FieldKeyHelper.OriginatingClass OriginatingClass, uint FieldNumber, uint Index) { _fieldNumber = FieldNumber; _index = Index; _program = Program; _originatingClass = OriginatingClass; }
/// <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; }
public PresenceField(FieldKeyHelper.Program program, FieldKeyHelper.OriginatingClass originatingClass, uint fieldNumber, uint index, T defaultValue) { Value = defaultValue; FieldNumber = fieldNumber; Index = index; Program = program; OriginatingClass = originatingClass; }
/// <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); } }
public UintPresenceField(FieldKeyHelper.Program Program, FieldKeyHelper.OriginatingClass OriginatingClass, uint FieldNumber, uint Index, ulong defaultValue = default(ulong)) : base(Program, OriginatingClass, FieldNumber, Index, defaultValue) { }
public BoolPresenceField(FieldKeyHelper.Program Program, FieldKeyHelper.OriginatingClass OriginatingClass, uint FieldNumber, uint Index, bool defaultValue = default(bool)) : base(Program, OriginatingClass, FieldNumber, Index, defaultValue) { }
public ByteStringPresenceField(FieldKeyHelper.Program Program, FieldKeyHelper.OriginatingClass OriginatingClass, uint FieldNumber, uint Index, T defaultValue = default(T)) : base(Program, OriginatingClass, FieldNumber, Index, defaultValue) { }