コード例 #1
0
 public AGSSerializationContext(IGameFactory factory, IDictionary <string, ITexture> textures,
                                Resolver resolver, IGLUtils glUtils)
 {
     Factory        = factory;
     GLUtils        = glUtils;
     Textures       = textures;
     _contracts     = new ContractsFactory();
     Resolver       = resolver;
     _rewireActions = new List <Action <IGameState> > ();
 }
コード例 #2
0
 static ContractButton()
 {
     ContractsFactory.RegisterFactory(typeof(IButton), () => new ContractButton());
 }
コード例 #3
0
 static ContractLabel()
 {
     ContractsFactory.RegisterFactory(typeof(ILabel), () => new ContractLabel());
 }
コード例 #4
0
 static ContractInventoryWindow()
 {
     ContractsFactory.RegisterFactory(typeof(IInventoryWindow), () => new ContractInventoryWindow());
 }
コード例 #5
0
 static ContractObject()
 {
     ContractsFactory.RegisterFactory(typeof(IObject), () => new ContractObject());
 }
コード例 #6
0
 static ContractCharacter()
 {
     ContractsFactory.RegisterFactory(typeof(ICharacter), () => new ContractCharacter());
     ContractsFactory.RegisterSubtype(typeof(IContract <IObject>), typeof(ContractCharacter));
 }
コード例 #7
0
ファイル: ContractSlider.cs プロジェクト: saizant/MonoAGS
 static ContractSlider()
 {
     ContractsFactory.RegisterFactory(typeof(ISlider), () => new ContractSlider());
 }