File WfWoodedArea.c
FileList > entities > WfWoodedArea.c
Go to the source code of this file
#include "WfWoodedArea.h"#include "BinarySerializer.h"#include "Entities.h"#include "GameFramework.h"#include "AssertLib.h"#include "ObjectPool.h"#include "Game2DLayer.h"#include "Physics2D.h"#include "Random.h"#include "WfEnums.h"#include "Atlas.h"#include <string.h>#include "Components.h"#include "WfTree.h"#include "DrawContext.h"#include "InputContext.h"#include "Log.h"
Classes
| Type | Name |
|---|---|
| struct | WfWoodedAreaData |
Public Functions
| Type | Name |
|---|---|
| void | WfDeSerializeWoodedAreaEntity (struct BinarySerializer * bs, struct Entity2D * pOutEnt, struct GameLayer2DData * pData) |
| void | WfDeSerializeWoodedAreaEntityV1 (struct BinarySerializer * bs, struct Entity2D * pOutEnt, struct GameLayer2DData * pData) |
| void | WfSerializeWoodedAreaEntity (struct BinarySerializer * bs, struct Entity2D * pInEnt, struct GameLayer2DData * pData) |
| void | WfWoodedAreaEntityOnDestroy (struct Entity2D * pEnt, struct GameFrameworkLayer * pData) |
| void | WfWoodedAreaEntityOnInit (struct Entity2D * pEnt, struct GameFrameworkLayer * pLayer, DrawContext * pDrawCtx, InputContext * pInputCtx) |
Public Static Functions
| Type | Name |
|---|---|
| void | AddTreeAtRandomPos (float xMin, float xMax, float yMin, float yMax, struct WfTreeDef * def, struct GameLayer2DData * pLayerData) |
| static | OBJECT_POOL (struct WfWoodedAreaData) |
Public Functions Documentation
function WfDeSerializeWoodedAreaEntity
void WfDeSerializeWoodedAreaEntity (
struct BinarySerializer * bs,
struct Entity2D * pOutEnt,
struct GameLayer2DData * pData
)
function WfDeSerializeWoodedAreaEntityV1
void WfDeSerializeWoodedAreaEntityV1 (
struct BinarySerializer * bs,
struct Entity2D * pOutEnt,
struct GameLayer2DData * pData
)
function WfSerializeWoodedAreaEntity
void WfSerializeWoodedAreaEntity (
struct BinarySerializer * bs,
struct Entity2D * pInEnt,
struct GameLayer2DData * pData
)
function WfWoodedAreaEntityOnDestroy
void WfWoodedAreaEntityOnDestroy (
struct Entity2D * pEnt,
struct GameFrameworkLayer * pData
)
function WfWoodedAreaEntityOnInit
void WfWoodedAreaEntityOnInit (
struct Entity2D * pEnt,
struct GameFrameworkLayer * pLayer,
DrawContext * pDrawCtx,
InputContext * pInputCtx
)
Public Static Functions Documentation
function AddTreeAtRandomPos
static void AddTreeAtRandomPos (
float xMin,
float xMax,
float yMin,
float yMax,
struct WfTreeDef * def,
struct GameLayer2DData * pLayerData
)
function OBJECT_POOL
static static OBJECT_POOL (
struct WfWoodedAreaData
)
The documentation for this class was generated from the following file /home/runner/work/2DFarmingRPG/2DFarmingRPG/Stardew/game/src/entities/WfWoodedArea.c