public TdlField(string identifier, TdlObject owner, ToffeeModifiers modifiers = ToffeeModifiers.None) { Identifier = identifier; Owner = owner; FieldId = CRC.CalculateCRC32(Identifier); Modifiers = modifiers; Owner.File.AddStringToHash(Identifier); }
public TdlProperty(string identifier, TdlObject owner, TdlType type, ToffeeModifiers modifiers = ToffeeModifiers.None) : base(identifier, owner, modifiers) { if (owner.GetType() == typeof(TdlService)) { throw new Exception("TdlProperty cannot be owned by TdlService."); } Type = type; }
public TdlMethod(string identifier, TdlObject owner) : base(identifier, owner) { if (owner.GetType() == typeof(TdlStruct)) { throw new Exception("TdlMethod cannot be owned by TdlStruct."); } _Parameters = new List <TdlParameter>(); ParameterLookup = new Dictionary <string, TdlParameter>(); MinimumSize = 0; }