This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Created by 董宸 on 07/01/2018. | |
// | |
#ifndef __RESETCORE_SINGLETON_H__ | |
#define __RESETCORE_SINGLETON_H__ | |
namespace ResetCore{ | |
/** | |
* 通用单例模板 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//DynamicStats.h | |
# pragma once | |
# if STATS | |
DECLARE_STATS_GROUP(TEXT("Dynamic"), STATGROUP_Dynamic, STATCAT_Advanced); | |
class FDynamicScopeCycleStatIdContainer : public TThreadSingleton<FDynamicScopeCycleStatIdContainer> | |
{ | |
public: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include "DefaultValue.h" | |
#include "Array.h" | |
#include "Set.h" | |
#include "Map.h" | |
namespace Linq | |
{ | |
template<typename T> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
template<typename T> | |
class TDefaultValue | |
{ | |
public: | |
static T value; | |
}; | |
template<typename T> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Net; | |
using System.Net.Sockets; | |
using TestServer; | |
namespace TestClient | |
{ | |
public class Client | |
{ | |
public void ConnectToServer() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ADB=adb | |
DEST="/data/local/tmp/reautomatic-agent" | |
OUTPUT="output/main" | |
echo "Build binary for arm ..." | |
go generate | |
GOOS=linux GOARCH=arm go build -o $OUTPUT -tags vfs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"log" | |
"os" | |
"os/exec" | |
) | |
func main() { | |
log.Println("logcat") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Convenience Wrapper functions | |
//Using TaskGraph | |
FGraphEventRef RunLambdaOnGameThread(TFunction< void()> InFunction) | |
{ | |
return FFunctionGraphTask::CreateAndDispatchWhenReady(InFunction, TStatId(), nullptr, ENamedThreads::GameThread); | |
} | |
FGraphEventRef RunLambdaOnAnyThread(TFunction< void()> InFunction) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "ActionQueue.h" | |
#include "TimerManager.h" | |
#include "Engine/World.h" | |
DEFINE_STAT(STAT_NumActionQueue); | |
int GUseActionQueue = 1; | |
static FAutoConsoleVariableRef CVarGUseActionQueue( | |
TEXT("actionqueue.UseActionQueue"), | |
GUseActionQueue, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "ActionConsumeTickManager.h" | |
#include "DynamicStats.h" | |
FConsumable* FConsumable::AddAction(TFunction<void()> InFunc) | |
{ | |
Parent->AddAction(InFunc); | |
return this; | |
} | |
void FConsumable::ConsumeAction(float DeltaTime) |
OlderNewer