@wayward/types 2.11.2-beta.dev.20220104.1 → 2.11.2-beta.dev.20220105.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -254,6 +254,14 @@ export default class Island extends EventEmitter.Host<IIslandEvents> implements
|
|
|
254
254
|
private updateEntityFov;
|
|
255
255
|
private processTimers;
|
|
256
256
|
private runRandomEvents;
|
|
257
|
+
/**
|
|
258
|
+
* Plants a random seed at the given coordinates based on what can grow on that tile naturally. This will replace any doodad that is there.
|
|
259
|
+
* @param x X coordinates.
|
|
260
|
+
* @param y Y coordinates.
|
|
261
|
+
* @param z Z coordinates.
|
|
262
|
+
* @returns True if a seed was planted.
|
|
263
|
+
*/
|
|
264
|
+
plantRandomSeed(x: number, y: number, z: number): boolean;
|
|
257
265
|
/**
|
|
258
266
|
* Synchronizes player events
|
|
259
267
|
* Usually called when a new player joins
|
|
@@ -29,6 +29,7 @@ export declare class SmartConnection extends Connection {
|
|
|
29
29
|
private _steamNetworkTimeoutId;
|
|
30
30
|
private _steamNetworkConnection;
|
|
31
31
|
constructor(matchmakingInfo: IMatchmakingInfo, matchmakingIdentifier: string, config: RTCConfiguration, sendMatchmakingMessage: (message: MatchmakingMessageData) => void, onData: (data: ArrayBuffer) => void, onConnected: (matchmakingInfo: IMatchmakingInfo) => void, trySteamRelayNetwork: boolean, connectGlobalMatchmakingServer: () => void);
|
|
32
|
+
get isSteamNetworkConnection(): boolean;
|
|
32
33
|
isConnected(): boolean;
|
|
33
34
|
getState(): ConnectionState;
|
|
34
35
|
setState(state: ConnectionState): void;
|
package/package.json
CHANGED