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> > (); }
static ContractButton() { ContractsFactory.RegisterFactory(typeof(IButton), () => new ContractButton()); }
static ContractLabel() { ContractsFactory.RegisterFactory(typeof(ILabel), () => new ContractLabel()); }
static ContractInventoryWindow() { ContractsFactory.RegisterFactory(typeof(IInventoryWindow), () => new ContractInventoryWindow()); }
static ContractObject() { ContractsFactory.RegisterFactory(typeof(IObject), () => new ContractObject()); }
static ContractCharacter() { ContractsFactory.RegisterFactory(typeof(ICharacter), () => new ContractCharacter()); ContractsFactory.RegisterSubtype(typeof(IContract <IObject>), typeof(ContractCharacter)); }
static ContractSlider() { ContractsFactory.RegisterFactory(typeof(ISlider), () => new ContractSlider()); }