コード例 #1
0
    public GameObject GetType(OceanType type)
    {
        if (type == OceanType.normal)
        {
            return(normalTile);
        }

        return(null);
    }
コード例 #2
0
ファイル: CreateObject.cs プロジェクト: Vakenrovec/CRUD
    public void CreateFlattop(ApplicationDataContext applicationDataContext, int speed, int releaseYear, string model,
                              string identificator, string homePort, OceanType ocean, int amountRockets, int AmountSoldiers, int power, FuelType fuel)
    {
        BaseObject obj = new Flattop
        {
            Speed          = speed,
            ReleaseYear    = releaseYear,
            Model          = model,
            Identificator  = identificator,
            HomePort       = homePort,
            Ocean          = ocean,
            AmountRockets  = amountRockets,
            AmountSoldiers = AmountSoldiers,
            WarPlanes      = new List <WarPlane>(),
            engine         = new Engine()
            {
                Power = power,
                Fuel  = fuel,
            },
        };

        applicationDataContext.CallObjectCreatedEvent(applicationDataContext.Objects, obj);
    }