mwhicks-dev / splat-alpha

2D platforming game engine based in C++ and built on top of the SFML multimedia suite.
0 stars 0 forks source link

Implement event types: CreateCharacter, CreatePlatform, CreateMovingPlatform, GetAsset, UpdateAsset, DeleteAsset #40

Closed mwhicks-dev closed 5 months ago

mwhicks-dev commented 5 months ago

Creates need specific types as they cannot be created without their context

CreateX events will return a content-type AssetDto, which just has the ID.

ReadAsset will be used only to get an asset (then cached) for the first time; it will return an event with a CreateX with the AssetProperties already defined.

UpdateAsset, and DeleteAsset will all have content-type none.

mwhicks-dev commented 5 months ago

Enhancement: now that these are working, add MovingPlatformProperties to CreateMovingPlatformHandler::Args because we kind of need it