コード例 #1
0
ファイル: TdlField.cs プロジェクト: Joshsora/Toffee
 public TdlField(string identifier, TdlObject owner, ToffeeModifiers modifiers = ToffeeModifiers.None)
 {
     Identifier = identifier;
     Owner      = owner;
     FieldId    = CRC.CalculateCRC32(Identifier);
     Modifiers  = modifiers;
     Owner.File.AddStringToHash(Identifier);
 }
コード例 #2
0
ファイル: TdlProperty.cs プロジェクト: Joshsora/Toffee
 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;
 }
コード例 #3
0
 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;
 }